package sk.velkavrana.app.model;

/**
 * @author mtymes
 * @since May 19, 2009 11:05:49 AM
 */
public class ConnectionInfo {

    private String driver;
    private String url;
    private String login;
    private String password;
    private String schema;
    private String dialectClassName;


    public ConnectionInfo() {
    }


    public ConnectionInfo(ConnectionInfo connectionInfo) {
        this.driver = connectionInfo.getDriver();
        this.url = connectionInfo.getUrl();
        this.login = connectionInfo.getLogin();
        this.password = connectionInfo.getPassword();
        this.schema = connectionInfo.getSchema();
        this.dialectClassName = connectionInfo.getDialectClassName();
    }


    public ConnectionInfo(String driver, String url, String login, String password, String schema, String dialectClassName) {
        this.driver = driver;
        this.url = url;
        this.login = login;
        this.password = password;
        this.schema = schema;
        this.dialectClassName = dialectClassName;
    }


    public String getDriver() {
        return driver;
    }


    public void setDriver(String driver) {
        this.driver = driver;
    }


    public String getUrl() {
        return url;
    }


    public void setUrl(String url) {
        this.url = url;
    }


    public String getLogin() {
        return login;
    }


    public void setLogin(String login) {
        this.login = login;
    }


    public String getPassword() {
        return password;
    }


    public void setPassword(String password) {
        this.password = password;
    }


    public String getSchema() {
        return schema;
    }


    public void setSchema(String schema) {
        this.schema = schema;
    }


    public String getDialectClassName() {
        return dialectClassName;
    }


    public void setDialectClassName(String dialectClassName) {
        this.dialectClassName = dialectClassName;
    }
}
